#pragma once


// CImageCtrl

class CImageCtrl : public CStatic
{
	DECLARE_DYNAMIC(CImageCtrl)

public:
	CImageCtrl();
	virtual ~CImageCtrl();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnPaint();

public:
	void SetImage(IStream *pStream)
	{
		if(!m_image.IsNull())
		{
			m_image.Destroy();
		}

		m_image.Load(pStream);
	}

private:
	CImage		m_image;
};


